<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加内容</title>
	<link rel="stylesheet" type="text/css" href="/dcms/Public/common.css" />
	<script type="text/javascript" src="/dcms/Public/Admin/resources/scripts/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" type="text/css" href="/dcms/Public/Boot/bootstrap.min.css" />
	<script type="text/javascript" src="/dcms/Public/Boot/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="/dcms/Public/Button/css/font-awesome.min.css" />
	<script type="text/javascript" src="/dcms/Public/Ueditor/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="/dcms/Public/Ueditor/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript" src="/dcms/Public/Ueditor/ueditor/lang/zh-cn/zh-cn.js"></script>
			
</head>
<body>
	<!-- 这个区域填写初始化的内容 -->
				<script type="text/javascript">
					   // window.UEDITOR_CONFIG.savePath='Uploads', 
					   window.onload=function(){
					        window.UEDITOR_CONFIG.initialFrameHeight=300;
					        window.UEDITOR_CONFIG.initialFrameWidth=1000;//编辑器的高度
					        window.UEDITOR_CONFIG.imageUrl="<?php echo U('Content/upload');?>";          //图片上传提交地址
					        window.UEDITOR_CONFIG.imagePath='';//编辑器调用图片的地址
					       	UE.getEditor('container')
					   }
			     
				</script>
	<div>
		<p>
 		 <a href="javascript:;" class="btn btn-primary ">编辑内容</a>
 		 <a href="<?php echo U('Content/index',array('cid'=>$_GET['cid']));?>" class="btn btn-info" >回到内容列表</a>
		</p>		
	</div>
	<form action="<?php echo U('content/edit');?>" method="post" enctype="multipart/form-data">
	<div class="table-responsive">
  		<table class="table table-striped">
  			<?php if(is_array($content)): $i = 0; $__LIST__ = $content;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?><tr>
				<td class="w100"><?php echo ($c["name"]); ?></td>
				<td><?php echo ($c["html"]); ?></td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			<tr>
				<td colspan='2'>
					<input  type="submit" value="提交内容" class="btn btn-primary r" >
				</td>
			</tr>
  		</table>

	</div>
	</form>


</body>
</html>